package com.huilian.iotbox.admin.quartz.job;

import com.huilian.iotbox.admin.service.SettleResultService;
import com.huilian.iotbox.admin.service.StmtResultService;
import com.huilian.iotbox.data.utils.DateTimeUtils;
import lombok.extern.slf4j.Slf4j;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;

/**
 * @author 谢洛涛
 * @date 2021/6/24 20:11
 */
@Slf4j
public class MchDayCloseQueryJob implements BaseJob {
    @Resource
    private StmtResultService stmtResultService;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info("--------------定时任务 统计结算查询开始 时间{}---------------", DateTimeUtils.currTime());
        stmtResultService.mchDayCloseQuery();
        log.info("--------------定时任务 统计结算查询结束 end时间{}---------------", DateTimeUtils.currTime());
    }
}
